package gamemaster;

import java.util.ArrayList;

import communication.message.Player;

/***
 * 
 * @author Łukasz Wrzesiński
 * 
 */

public class Play {

	private String playId;
	private Board board;
	private Player[] players;
	private int currentPlayer;

	public Play() {
		board = new Board();
		players = new Player[2];
		playId = "0";
		currentPlayer = 0;
	}

	public Play(ArrayList<Player> _players, String _playId) {
		board = new Board();
		players = new Player[2];
		players[0] = _players.get(0);
		players[1] = _players.get(1);
		playId = _playId;
		currentPlayer = 0;
	}

	public String getPlayId() {
		return playId;
	}

	public Board getBoard() {
		return board;
	}

	public void setBoard(Board b) {
		board = b;
	}

	public Player[] getPlayers() {
		return players;
	}

	public int getCurrentPlayer() {
		return currentPlayer;
	}

	public void setCurrentPlayer(int _cp) {
		currentPlayer = _cp;
	}

}
